/* ViewerPage 样式 - 重新设计 */

/* 整体容器 */
.viewer-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: #000;
  color: #fff;
}

/* 顶部工具栏样式 */
.viewer-header {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  background-color: #1e2538;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
}

/* LOGO 样式 */
.viewer-logo {
  width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
}

.svg-logo {
  width: 100%;
  height: 100%;
}

/* 患者信息切换按钮 */
.patient-info-toggle {
  display: flex;
  align-items: center;
  margin-left: 20px;
  padding: 5px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.patient-info-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.patient-info-toggle i {
  margin-right: 5px;
  font-size: 16px;
}

/* 序列选择器 */
.series-selector {
  width: 300px;
}

/* 主要内容区域 */
.viewer-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* 左侧工具栏 */
.tools-sidebar {
  width: 70px;
  background-color: #1e2538;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.2);
  z-index: 90;
}

.tool-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
  width: 100%;
}

.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  background-color: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  height: 60px;
}

.tool-btn i {
  font-size: 20px;
  margin-bottom: 5px;
}

.tool-btn span {
  font-size: 12px;
}

.tool-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.tool-btn.active {
  background-color: #409EFF;
  color: #fff;
}

/* 中央影像显示区域 */
.viewer-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.viewer-item {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #000;
}

.cornerstone-element {
  width: 100%;
  height: 100%;
  background-color: #000;
}

/* 右侧 AI 面板 */
.ai-panel {
  width: 300px;
  background-color: #1e2538;
  position: relative;
  transition: width 0.3s ease;
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.2);
  z-index: 90;
}

.ai-panel.collapsed {
  width: 30px;
}

.panel-toggle {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateX(-50%);
  width: 24px;
  height: 24px;
  background-color: #409EFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.panel-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.panel-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 患者信息浮层 */
.patient-info-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(30, 37, 56, 0.9);
  border-radius: 6px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
  overflow: hidden;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #409EFF;
  color: white;
}

.overlay-header i {
  cursor: pointer;
}

.overlay-content {
  padding: 15px;
}

.info-row {
  margin-bottom: 8px;
  display: flex;
}

.info-label {
  width: 80px;
  color: rgba(255, 255, 255, 0.7);
}

.info-value {
  flex: 1;
  font-weight: 500;
}

/* 图像信息覆盖层 */
.image-overlay {
  position: absolute;
  bottom: 60px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 缩放信息提示 */
.zoom-info {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 100;
  transition: opacity 0.3s ease;
}

/* 窗宽窗位信息 */
.wwwc-info {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 100;
}

/* 底部进度条 */
.bottom-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: rgba(30, 37, 56, 0.8);
  display: flex;
  align-items: center;
  padding: 0 15px;
  z-index: 100;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.horizontal-slider {
  flex: 1;
  margin: 0 15px;
}

.slice-info {
  margin-left: 10px;
  font-size: 14px;
  min-width: 60px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* 加载指示器 */
.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.loading-text {
  margin-top: 15px;
  color: white;
  font-size: 16px;
  font-weight: 500;
}

/* 缩放鼠标样式 */
body.zooming {
  cursor: ns-resize !important;
}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
  .ai-panel {
    width: 250px;
  }
  
  .series-selector {
    width: 250px;
  }
}

@media screen and (max-width: 992px) {
  .tools-sidebar {
    width: 60px;
  }
  
  .tool-btn {
    height: 50px;
  }
  
  .tool-btn i {
    font-size: 18px;
  }
  
  .tool-btn span {
    font-size: 10px;
  }
  
  .ai-panel {
    width: 200px;
  }
}

@media screen and (max-width: 768px) {
  .header-center {
    display: none;
  }
  
  .ai-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 150;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .ai-panel:not(.collapsed) {
    transform: translateX(0);
  }
  
  .patient-info-overlay {
    width: 250px;
  }
}

@media screen and (max-width: 576px) {
  .tools-sidebar {
    width: 50px;
  }
  
  .tool-btn span {
    display: none;
  }
  
  .tool-btn {
    height: 40px;
  }
  
  .patient-info-toggle span {
    display: none;
  }
}

/* 滑块样式优化 */
.el-slider__runway {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
}

.el-slider__bar {
  height: 6px;
  background-color: #409EFF;
}

.el-slider__button {
  width: 16px;
  height: 16px;
  border: 2px solid #409EFF;
  background-color: #fff;
}

.el-slider__button-wrapper {
  top: -5px;
  width: 16px;
  height: 16px;
} 